Commits

Anonymous committed 3e31527

Added @safe pure nothrow

Comments (0)

Files changed (1)

d/druntime/core/stdc/math.d

     alias __builtin_log  log;
     alias __builtin_logf logf;
 
-    version(FreeBSD) real logl(real x) { return log(x); }
+    version(FreeBSD) @safe pure nothrow real logl(real x) { return log(x); }
     else alias __builtin_logl logl;
 
     alias __builtin_log10  log10;
     alias __builtin_log10f log10f;
 
-    version(FreeBSD) real log10l(real x) { return log10(x); }
+    version(FreeBSD) @safe pure nothrow real log10l(real x) { return log10(x); }
     else alias __builtin_log10l log10l;
 
     alias __builtin_log1p  log1p;
     alias __builtin_log1pf log1pf;
 
-    version(FreeBSD) real log1pl(real x) { return log1pl(x); }
+    version(FreeBSD) @safe pure nothrow real log1pl(real x) { return log1pl(x); }
     else alias __builtin_log1pl log1pl;
 
     alias __builtin_log2  log2;
     alias __builtin_cbrt  cbrt;
     alias __builtin_cbrtf cbrtf;
 
-    version(FreeBSD) real cbrtl(real x) { return cbrt(x); }
+    version(FreeBSD) @safe pure nothrow real cbrtl(real x) { return cbrt(x); }
     else alias __builtin_cbrtl cbrtl;
 
     alias __builtin_fabs  fabs;
     alias __builtin_erf  erf;
     alias __builtin_erff erff;
 
-    version(FreeBSD) real erfl(real x) { return erfl(x); }
+    version(FreeBSD) @safe pure nothrow real erfl(real x) { return erfl(x); }
     else alias __builtin_erfl erfl;
 
     alias __builtin_erfc  erfc;
     alias __builtin_erfcf erfcf;
 
-    version(FreeBSD) real erfcl(real x) { return erfc(x); }
+    version(FreeBSD) @safe pure nothrow real erfcl(real x) { return erfc(x); }
     else alias __builtin_erfcl erfcl;
 
     alias __builtin_lgamma  lgamma;
     alias __builtin_lgammaf lgammaf;
 
-    version(FreeBSD) real lgammal(real x) { return lgammal(x); }
+    version(FreeBSD) @safe pure nothrow real lgammal(real x) { return lgammal(x); }
     else alias __builtin_lgammal lgammal;
 
     alias __builtin_tgamma  tgamma;
     alias __builtin_tgammaf tgammaf;
 
-    version(FreeBSD) real tgammal(real x) { return tgamma(x); }
+    version(FreeBSD) @safe pure nothrow real tgammal(real x) { return tgamma(x); }
     else alias __builtin_tgammal tgammal;
 
     alias __builtin_ceil  ceil;