summaryrefslogtreecommitdiffstats
path: root/all_pairs/source/susan/wcclibm.h
blob: bcf4c654377bfc98112ea8f979df4b26e5ba0c59 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#ifndef _WCCLIBM
#define _WCCLIBM

#define int32_t      int
#define uint32_t     unsigned int
#define u_int16_t    unsigned short
#define u_int32_t    unsigned int

// Often used variables/consts
#ifdef __STDC__
static	const float	
#else
static	float	
#endif
susan_one	   =  1.0f,
susan_half   =  5.0000000000e-01f, /* 0x3f000000 */
susan_zero   =  0.0f,
susan_huge   = 1.0e30,
susan_two8   =  2.5600000000e+02f, /* 0x43800000 */
susan_twon8  =  3.9062500000e-03f; /* 0x3b800000 */

// The following defines map the math functions to specialized calls
#define acos     susan___ieee754_acosf
#define atan     susan___atanf
#define cos      susan___cosf
#define fabs     susan___fabsf
#define fabsf    susan___fabsf
#define isinf    susan___isinff
#define pow      susan___ieee754_powf
#define sqrt     susan___ieee754_sqrtf
#define log10    susan___ieee754_log10f
#define log      susan___ieee754_logf
#define sin      susan___sinf

float   susan___atanf(float x);
float   susan___copysignf(float x, float y);
float   susan___cosf(float x);
float   susan___fabsf(float x);
float   susan___floorf(float x);
float   susan___ieee754_acosf(float x);
float   susan___ieee754_powf(float x, float y);
int32_t susan___ieee754_rem_pio2f(float x, float *y);
float   susan___ieee754_sqrtf(float x);
int     susan___isinff (float x);
float   susan___kernel_cosf(float x, float y);
float   susan___kernel_sinf(float x, float y, int iy);
int     susan___kernel_rem_pio2f(float *x, float *y, int e0, int nx, int prec, const int32_t *ipio2);
float   susan___scalbnf (float x, int n);
float   susan___ieee754_logf(float x);
float   susan___ieee754_log10f(float x);
float   susan___sinf(float x);

#endif // _WCCLIBM
d='n236' href='#n236'>236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472























































































































































































































































































































































































































































































                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
ÐÏࡱá