Overview
Comment: | Only align OFVector4D where necessary
Changing the alignment of OFVector4D globally (as was done previously) |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
1af54eb2c2dabfc7115810159f4ba65c |
User & Date: | js on 2024-04-02 03:21:12 |
Other Links: | manifest | tags |
Context
2024-04-02
| ||
21:58 | Fix a linker warning on macOS check-in: a6e2670136 user: js tags: trunk | |
03:21 | Only align OFVector4D where necessary check-in: 1af54eb2c2 user: js tags: trunk | |
02:22 | OFLocale: Support automatic initialization check-in: e7a8f3d462 user: js tags: trunk | |
Changes
Modified src/OFMatrix4x4.h from [e3aa63e106] to [06311cf4f1].
︙ | |||
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | + + + + + | * @param vector The vector to transform * @return The transformed vector */ - (OFVector4D)transformedVector: (OFVector4D)vector; /** * @brief Transforms the specified vectors in-place according to the matrix. * * @warning Please note that the vectors must be 16 byte aligned! This is * required to allow SIMD optimizations. Passing a pointer to vectors * that are not 16 byte aligned will crash if SIMD optimizations are * enabled. * * @param vectors The vectors to transform * @param count The count of the specified vectors */ - (void)transformVectors: (OFVector4D *)vectors count: (size_t)count; @end OF_ASSUME_NONNULL_END |
Modified src/OFMatrix4x4.m from [67c177d7d9] to [0c5b86a89a].
︙ | |||
360 361 362 363 364 365 366 | 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 | - + | }]; [self multiplyWithMatrix: scale]; [scale release]; } - (OFVector4D)transformedVector: (OFVector4D)vector { |
︙ |
Modified src/OFObject.h from [18f66eccc2] to [a1d249e5df].
︙ | |||
345 346 347 348 349 350 351 | 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 | - + | } /** * @struct OFVector4D OFObject.h ObjFW/OFObject.h * * @brief A vector in 4D space. */ |
︙ |
Modified src/macros.h from [1147a05908] to [d86f5f8b91].
︙ | |||
98 99 100 101 102 103 104 | 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | - - - - + + | # define OF_LIKELY(cond) (cond) # define OF_UNLIKELY(cond) (cond) # define OF_CONST_FUNC # define OF_NO_RETURN_FUNC # define OF_WEAK_REF(sym) #endif |
︙ |
Modified tests/OFMatrix4x4Tests.m from [25395304c9] to [5e35103519].
︙ | |||
145 146 147 148 149 150 151 | 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 | - + | OTAssertEqual(point.y, 2.5); OTAssertEqual(point.z, 14); OTAssertEqual(point.w, 1); } - (void)testTransformVectorsCount { |