data.js (1788B)
1 /** 2 * @license Apache-2.0 3 * 4 * Copyright (c) 2020 The Stdlib Authors. 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18 19 /* eslint-disable stdlib/capitalized-comments */ 20 21 'use strict'; 22 23 // MODULES // 24 25 var floor = require( './../../../../base/special/floor' ); 26 var floorf = require( './../../../../base/special/floorf' ); 27 var identity = require( './../../../../base/special/identity' ); 28 29 30 // MAIN // 31 32 var data = [ 33 // NOTE: the following **must** match the order in `./types.json`. The order should be according to likelihood of use (e.g., if `float64` arrays are more likely, then `float64` types/data should come before `uint8`). 34 35 // float64 36 floor, 37 floor, 38 39 // float32 40 floorf, 41 floor, 42 floor, 43 44 // generic 45 floor, 46 47 // int32 48 identity, 49 identity, 50 identity, 51 52 // int16 53 identity, 54 identity, 55 identity, 56 identity, 57 identity, 58 59 // int8 60 identity, 61 identity, 62 identity, 63 identity, 64 identity, 65 identity, 66 67 // uint32 68 identity, 69 identity, 70 identity, 71 72 // uint16 73 identity, 74 identity, 75 identity, 76 identity, 77 identity, 78 identity, 79 80 // uint8 81 identity, 82 identity, 83 identity, 84 identity, 85 identity, 86 identity, 87 identity, 88 identity, 89 identity, 90 91 // uint8c 92 identity, 93 identity, 94 identity, 95 identity, 96 identity, 97 identity, 98 identity, 99 identity, 100 identity 101 ]; 102 103 104 // EXPORTS // 105 106 module.exports = data;