Work on magic numbers for aarch64

This commit is contained in:
Justine Tunney 2023-05-10 01:10:28 -07:00
parent 59766efd3e
commit 5a455eaa0b
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
2070 changed files with 4567 additions and 4200 deletions

View file

@ -16,6 +16,7 @@
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
*/
#include "dsp/tty/quant.h"
#include "libc/assert.h"
#include "libc/runtime/buffer.internal.h"
#include "tool/viz/lib/graphic.h"
@ -29,7 +30,7 @@
struct Graphic *resizegraphic(struct Graphic *g, size_t yn, size_t xn) {
/* assert(xn % 2 == 0); */ /* todo: ughhh this whole thing is wrong */
yn &= ~1;
balloc(&g->b, 64, yn * xn * sizeof(__m128) + /* wut */ PAGESIZE);
balloc(&g->b, 64, yn * xn * sizeof(ttyrgb_m128) + /* wut */ PAGESIZE);
g->yn = yn;
g->xn = xn;
return g;