Sylvain Munaut | 5e2e044 | 2015-12-30 11:45:58 +0100 | [diff] [blame^] | 1 | From 6449c83295a4307a6cc7e7fb3a8b53c944116d27 Mon Sep 17 00:00:00 2001 |
| 2 | From: Sylvain Munaut <tnt@246tNt.com> |
| 3 | Date: Wed, 30 Dec 2015 10:16:50 +0100 |
| 4 | Subject: [PATCH 6/6] Allow inlining of most of the math function for better |
| 5 | speed |
| 6 | |
| 7 | Signed-off-by: Sylvain Munaut <tnt@246tNt.com> |
| 8 | --- |
| 9 | mathhalf.c | 29 +++++++++++++++++++++++++++++ |
| 10 | mathhalf.h | 31 +++++++++++++++++++++++++++++++ |
| 11 | 2 files changed, 60 insertions(+) |
| 12 | |
| 13 | diff --git refsrc/mathhalf.c refsrc/mathhalf.c |
| 14 | index 40a2152..fe5d192 100644 |
| 15 | --- refsrc/mathhalf.c |
| 16 | +++ refsrc/mathhalf.c |
| 17 | @@ -139,0 +140 @@ |
| 18 | +static __attribute__((unused)) |
| 19 | @@ -201,0 +203 @@ |
| 20 | +static __attribute__((unused)) |
| 21 | @@ -251,0 +254 @@ |
| 22 | +static __attribute__((unused)) |
| 23 | @@ -304,0 +308 @@ |
| 24 | +static __attribute__((unused)) |
| 25 | @@ -345,0 +350 @@ |
| 26 | +static __attribute__((unused)) |
| 27 | @@ -385,0 +391 @@ |
| 28 | +static __attribute__((unused)) |
| 29 | @@ -448,0 +455 @@ |
| 30 | +static __attribute__((unused)) |
| 31 | @@ -514,0 +522 @@ |
| 32 | +static __attribute__((unused)) |
| 33 | @@ -552,0 +561 @@ |
| 34 | +static __attribute__((unused)) |
| 35 | @@ -613,0 +623 @@ |
| 36 | +static __attribute__((unused)) |
| 37 | @@ -671,0 +682 @@ |
| 38 | +static __attribute__((unused)) |
| 39 | @@ -717,0 +729 @@ |
| 40 | +static __attribute__((unused)) |
| 41 | @@ -763,0 +776 @@ |
| 42 | +static __attribute__((unused)) |
| 43 | @@ -831,0 +845 @@ |
| 44 | +static __attribute__((unused)) |
| 45 | @@ -899,0 +914 @@ |
| 46 | +static __attribute__((unused)) |
| 47 | @@ -1008,0 +1024 @@ |
| 48 | +static __attribute__((unused)) |
| 49 | @@ -1104,0 +1121 @@ |
| 50 | +static __attribute__((unused)) |
| 51 | @@ -1184,0 +1202 @@ |
| 52 | +static __attribute__((unused)) |
| 53 | @@ -1247,0 +1266 @@ |
| 54 | +static __attribute__((unused)) |
| 55 | @@ -1292,0 +1312 @@ |
| 56 | +static __attribute__((unused)) |
| 57 | @@ -1348,0 +1369 @@ |
| 58 | +static __attribute__((unused)) |
| 59 | @@ -1385,0 +1407 @@ |
| 60 | +static __attribute__((unused)) |
| 61 | @@ -1454,0 +1477 @@ |
| 62 | +static __attribute__((unused)) |
| 63 | @@ -1546,0 +1570 @@ |
| 64 | +static __attribute__((unused)) |
| 65 | @@ -1597,0 +1622 @@ |
| 66 | +static __attribute__((unused)) |
| 67 | @@ -1660,0 +1686 @@ |
| 68 | +static __attribute__((unused)) |
| 69 | @@ -1740,0 +1767 @@ |
| 70 | +static __attribute__((unused)) |
| 71 | @@ -1843,0 +1871 @@ |
| 72 | +static __attribute__((unused)) |
| 73 | @@ -1943,0 +1972 @@ |
| 74 | +static __attribute__((unused)) |
| 75 | diff --git refsrc/mathhalf.h refsrc/mathhalf.h |
| 76 | index 247cfde..81c4004 100644 |
| 77 | --- refsrc/mathhalf.h |
| 78 | +++ refsrc/mathhalf.h |
| 79 | @@ -14,0 +15 @@ |
| 80 | +static |
| 81 | @@ -15,0 +17 @@ |
| 82 | +static |
| 83 | @@ -16,0 +19 @@ |
| 84 | +static |
| 85 | @@ -17,0 +21 @@ |
| 86 | +static |
| 87 | @@ -22,0 +27 @@ |
| 88 | +static |
| 89 | @@ -23,0 +29 @@ |
| 90 | +static |
| 91 | @@ -24,0 +31 @@ |
| 92 | +static |
| 93 | @@ -30,0 +38 @@ |
| 94 | +static |
| 95 | @@ -31,0 +40 @@ |
| 96 | +static |
| 97 | @@ -32,0 +42 @@ |
| 98 | +static |
| 99 | @@ -33,0 +44 @@ |
| 100 | +static |
| 101 | @@ -34,0 +46 @@ |
| 102 | +static |
| 103 | @@ -35,0 +48 @@ |
| 104 | +static |
| 105 | @@ -40,0 +54 @@ |
| 106 | +static |
| 107 | @@ -41,0 +56 @@ |
| 108 | +static |
| 109 | @@ -47,0 +63 @@ |
| 110 | +static |
| 111 | @@ -49,0 +66 @@ |
| 112 | +static |
| 113 | @@ -51,0 +69 @@ |
| 114 | +static |
| 115 | @@ -53,0 +72 @@ |
| 116 | +static |
| 117 | @@ -59,0 +79 @@ |
| 118 | +static |
| 119 | @@ -60,0 +81 @@ |
| 120 | +static |
| 121 | @@ -66,0 +88 @@ |
| 122 | +static |
| 123 | @@ -67,0 +90 @@ |
| 124 | +static |
| 125 | @@ -68,0 +92 @@ |
| 126 | +static |
| 127 | @@ -69,0 +94 @@ |
| 128 | +static |
| 129 | @@ -74,0 +100 @@ |
| 130 | +static |
| 131 | @@ -79,0 +106 @@ |
| 132 | +static |
| 133 | @@ -80,0 +108 @@ |
| 134 | +static |
| 135 | @@ -84,0 +113 @@ |
| 136 | +static |
| 137 | @@ -96,0 +126,2 @@ |
| 138 | +#include "mathhalf.c" |
| 139 | + |
| 140 | -- |
| 141 | 2.4.10 |
| 142 | |