Function report | 
Source Code:lib\math\prime_numbers.c | 
Create Date:2022-07-28 06:43:33 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:selftest
Proto:static int selftest(unsigned long max)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| unsigned long | max | 
| 268 | If Not max Then Return 0 | 
| 272 | slow = slow_is_prime_number(x) | 
| 273 | fast = s_prime_number - test whether the given number is prime*@x: the number to test* A prime number is an integer greater than 1 that is only divisible by* itself and 1 | 
| 276 | pr_err("inconsistent result for is-prime(%lu): slow=%s, fast=%s!", x, slow ? "yes" : "no", fast ? "yes" : "no") | 
| 278 | Go to err | 
| 281 | If Not slow Then Continue | 
| 285 | pr_err("incorrect result for next-prime(%lu): expected %lu, got %lu", last, x, xt_prime_number - return the next prime number*@x: the starting point for searching to test* A prime number is an integer greater than 1 that is only divisible by* itself and 1) | 
| 287 | Go to err | 
| 293 | Return 0 | 
| 295 | err : | 
| 296 | dump_primes() | 
| 297 | Return -EINVAL | 
| Name | Describe | 
|---|---|
| primes_init | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |