serenity/Base/res
Tim Ledbetter 8892c25520 Base: Return the correct value for fib(0) in Wasm example
Previously, using `wasm-decompile` to decompile the Wasm bytecode on
the `wasm.html` example page gave this output:

```
export function fib(a:int):int {
  if (a < 2) { return 1 }
  return fib(a - 2) + fib(a - 1);
}
```

With this change the bytecode now decompiles to:

```
export function fib(a:int):int {
  if (a <= 0) { return 0 }
  if (a == 1) { return 1 }
  return fib(a - 2) + fib(a - 1);
}
```

This means that the example page now prints the correct answer of 55 to
the console for `fib(10)`. Previously, `fib(10)` returned 89.

I also used `wasm-opt -Oz`, which removed an unnecessary `return`
instruction, saving 1 byte!
2024-04-11 01:17:20 +02:00
..
apps LibGfx: Add the start of a JPEG2000 loader 2024-03-25 20:35:00 +01:00
color-palettes Base: Add pastel color palette 2022-02-10 10:22:17 +00:00
color-schemes Everywhere: Move Base/res/terminal-colors to Base/res/color-schemes 2022-12-31 04:20:59 -07:00
cursor-themes Base: Remove an upscaled version of a Hidden cursor 2022-09-01 14:27:07 +01:00
devel/templates Userland: Use non-fallible EventReceiver::add() where possible 2023-09-25 10:58:31 +02:00
emoji Base: Add and Rework Emoji 2024-04-06 13:40:45 -04:00
fonts Base: Add 201 Hangul syllables to font Katica Regular 10 2023-10-13 11:02:28 -06:00
graphics Base: Remake Default Snake Sprites 2024-03-07 11:34:37 -05:00
html/misc Base: Return the correct value for fib(0) in Wasm example 2024-04-11 01:17:20 +02:00
icons Base+ImageViewer: Add new icons for ImageViewer 2024-03-12 08:08:19 +00:00
js/Spreadsheet Spreadsheet: Fix maxIf and minIf name in documentation 2022-10-29 06:29:11 +03:30
keymaps Base: Extend the Finnish keymap and make capital Å type what it should 2023-05-31 16:42:09 +02:00
ladybird LibWebView: Do not embed text as data in the Inspector HTML 2024-02-20 17:04:36 +01:00
themes Taskbar: Add hotkeys for theme selector menu 2024-01-14 15:16:45 -07:00
wallpapers Base: Add back the OG grid wallpaper from back in the day, now as a PNG 2020-04-30 12:31:02 +02:00
fortunes.json Base: Add an ISO C++-compliant quote to the fortunes database 2023-09-30 20:28:27 +02:00
words.txt Games: Add MasterWord 2022-03-18 04:55:21 -07:00